# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=icestorm
pkgver=0_git20240517
_commit=c23e99c484aa7c5703905d07694adfc710afcf3e
pkgrel=0
pkgdesc="Project IceStorm - Lattice iCE40 FPGAs Bitstream Documentation"
url="https://github.com/YosysHQ/icestorm"
arch="all"
license="ISC"
makedepends="
	libftdi1-dev
	python3
	"
source="
	$pkgname-$_commit.tar.gz::https://github.com/YosysHQ/icestorm/archive/$_commit.tar.gz

	0001-fix-format-specifiers.patch
	"
builddir="$srcdir/icestorm-$_commit"
options="!check" # no unit tests provided

build() {
	make PREFIX="/usr"
}

package() {
	DESTDIR="$pkgdir" make PREFIX="/usr" install
}

sha512sums="
ebbbd559069b7e95afc03445f904ceb5731c0e691457c7c7b2a0e66882ff3f89c7df1896a0a4e8085b067330ffc5a03f89096b410623a92170aa0ea33b1db542  icestorm-c23e99c484aa7c5703905d07694adfc710afcf3e.tar.gz
dbb175d424615405b9362b40167152c619c1a5722333b273345660e6c1582517f35f7cafb6423e7ea31c1bfd67faaa74b6dc141cb32e1a4539d3bca440808e38  0001-fix-format-specifiers.patch
"
